package com.hua.store.service;

import com.hua.store.domin.PageModel;
import com.hua.store.domin.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
    List<Product> getNewPro() throws SQLException;

    List<Product> getHotPro() throws SQLException;

    Product findProductByPid(String pid) throws SQLException;

    PageModel findProductsByCidWithPage(String cid, int curNum) throws SQLException;

    PageModel findAllProductWithPage(int curNum) throws SQLException;

    void saveProduct(Product product) throws Exception;
}
